#include <stdio.h>
int main(void)
{
     int A[] = {1, 2, -2, 4, 5, -5, 4};
     int len = sizeof(A) / sizeof(*A);
     int B[len], C[len];
     int p = 0, q = 0;
     for (int i = 0; i < len; i++)
     {
          if (A[i] > 0)
               B[p++] = A[i];
          else if (A[i] < 0)
               C[q++] = A[i];
     }
     for (int i = 0; i < p; i++)
          printf("%d     ", B[i]);
     printf("\n");
     for (int i = 0; i < q; i++)
          printf("%d     ", C[i]);
     printf("\n");
     return 0;
}
